<?php

/*
 * @author	daigangbo@gmail.com
 * 
 */

class Admin extends CI_Controller {

    function __construct() {
        parent::__construct();
        print __CLASS__;
        $this->load->library('session');
        $this->load->helper('url');
        if ($this->is_login() == FALSE){
           // redirect('login');
        }
    }
    function is_login(){
        if($this->session->userdata('uname')){
            return TRUE;
        }
        return FALSE;
    }

}

/* End */

